<?php
include("conn.php");
$id=$_GET['id'];
//$id=2;
$sql="select * from result where id = '$id'";
$result=$conn->query($sql);
//var_dump($result);
$results=array();
if($result->num_rows>0){
	while($row=$result->fetch_assoc()){
		$results=$row;
	}
	echo json_encode($results);
}else{
	echo "未找到数据:";
}
$conn->close();
?>